/*-------------------
*Description:        By www.yiwuku.com
*Website:            https://app.zblogcn.com/?auth=3ec7ee20-80f2-498a-a5dd-fda19b198194
*Author:             尔今 erx@qq.com
*update:             2017-12-16(Last:2017-12-16)
-------------------*/

$(function(){
	//控制脚本
	$("#frmSumbit input, #frmSumbit textarea").attr({disabled:"disabled"});
	$("#frmSumbit textarea").attr({placeholder:""});
	var xytox = $("#frmSumbit textarea").offset().top;
	var xytoy = $("#frmSumbit textarea").offset().left;
	var xytwd = $("#frmSumbit textarea").outerWidth();
	var xytht = $("#frmSumbit textarea").outerHeight();
	var ncdom = $("#nocmtip").html();
	$("#nocmtip").css({top:xytox+"px",left:xytoy+"px",width:xytwd+"px",height:xytht+"px",lineHeight:xytht+"px",textAlign:"center",color:"#888",fontSize:"14px",margin:0,padding:0,fontWeight:"normal"});
	if(!$("#lr_formcon").length){
		$(".xylogin, .xyreg").bind("click", function() {
		    alert("抱歉，网站暂无该功能！");
		});
	}
	if(ncdom.indexOf("</") < 0){
		$("#frmSumbit textarea").attr({placeholder:ncdom});
		$("#nocmtip").hide();
	}
	if(ncdom.length<2){
		$("#nocmtip").hide();
	}
});